<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>系统统计</title>
    <link rel="stylesheet" href="../layui/css/layui.css">
</head>
<body>
    <a href="admin_list_black.html" class="layui-btn clr" style="margin-left: 820px;">深色模式</a>
    <a class="layui-btn change" style="position: absolute;left: 920px;">饼状图显示</a>
    <div id="main" style="width: 100%;height: 480px;">
    </div>

    <script src="../js/echarts.min.js"></script>
    <script src="../js/jquery-1.12.4.min.js"></script>
    <script src="../js/Vue.js"></script>
    <script src="js/admin-list.js"></script>
    <script src="js/admin-same.js"></script>
    <script>
        var myChart = echarts.init(document.querySelector("#main"),'light');

        myChart.setOption({
            title: {
                text: '阿里迪里影院票房TOP10',
                textStyle:{
                    fontSize:25
                }
            },
            tooltip: {},
            legend: {
                data: ['票房数']
            },
            yAxis: {
                data: [localStorage.getItem("filmName10"), localStorage.getItem("filmName9"),localStorage.getItem("filmName8"), localStorage.getItem("filmName7"), localStorage.getItem("filmName6"),localStorage.getItem("filmName5"), localStorage.getItem("filmName4"),localStorage.getItem("filmName3"), localStorage.getItem("filmName2"), localStorage.getItem("filmName1")]
            },
            xAxis: {},
            series: [{
                name: '票房数',
                type: 'bar',
                data: [localStorage.getItem("count10"), localStorage.getItem("count9"), localStorage.getItem("count8"), localStorage.getItem("count7"), localStorage.getItem("count6"), localStorage.getItem("count5"), localStorage.getItem("count4"), localStorage.getItem("count3"), localStorage.getItem("count2"), localStorage.getItem("count1")]
            }]
        })
    </script>
</body>
</html>